package com.xhsj.user.hr.system.entity;

import com.xhsj.user.hr.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 组织结构申请记录
 * </p>
 *
 * @author suxiaolin
 * @since 2020-09-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_global_organization_apply")
public class TbGlobalOrganizationApply extends BaseEntity<TbGlobalOrganizationApply> {

    private static final long serialVersionUID = 1L;

    /**
     * 类型 0 部门 1职位
     */
    @TableField("type")
    private Integer type;

    /**
     * 名称
     */
    @TableField("name")
    private String name;

    /**
     * 所属部门id 
     */
    @TableField("department_id")
    private Long departmentId;

    @TableField(exist = false)
    private Long organizationId;


    @TableField(exist = false)
    private Long parentId;

    /**
     * 描述
     */
    @TableField("description")
    private String description;

    /**
     * 流程id 外键  tb_global_business id
     */
    @TableField("business_id")
    private Long businessId;

    /**
     * 节点id
     */
    @TableField("node_id")
    private Long nodeId;

    /**
     * 节点名称
     */
    @TableField("node_name")
    private String nodeName;

    @TableField(exist = false)
    private String createName;

    @TableField(exist = false)
    private Long processTaskId;


}
